
<table summary='' cellpadding="0" border="0" align="center" cellspacing="0"width="100%">
              <tr>
                <td valign="top" align="center"><table summary='' cellpadding="0" cellspacing="0" width="100%" border="0">
                    <tr>
                       <td class="p_link" align="left">{$hlinks_|lower}</td>
                    </tr>
                                        <tr>
                                                <td height="15"></td>
                                         </tr>
                  </table>
                  <table summary='' cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                      <td align="center" class="table_pad"><table summary='' cellpadding="0" cellspacing="0" width="610" border="0">
                          <tr>
                            <td width="610" height="26" align="left"><div class="faq"><b>{$itemdata.title}</b></div></td>
                          </tr>
                                                  <tr>
                                                        <td height="15"></td>
                                                  </tr>
                        </table>
                        <table summary='' cellpadding="0" cellspacing="0" width="600" border="0">
                          <tr>
                            <td valign="top"><table summary='' cellpadding="0" cellspacing="0" border="0" width="210">
                                <tr>
                        <td >
{if $itemdata.img_large != ''}
<img src="{$mega_http_root}inventory/{$itemdata.img_large}" alt='{$itemdata.title|lower} image' width="198" height="194"  />
{else}
<img src="{$mega_http_root}img/no_image.png" alt='' />
{/if}
                        </td>
                                </tr>
                              </table>
                              <table summary='' cellpadding="0" cellspacing="0" border="0" width="210">
                                <tr>
                                  <td align="center" width="240">{if $itemdata.img_hires != ''}<a title='Enlarge {$itemdata.title|lower} image' href="#" onclick="javascript:newwindow('{$mega_http_root}minipreview.php?url=/inventory/{$img_hires}', {$imgsizes[0]})"><img src="/img/zoom_image.jpg" border="0" alt="" width="96" height="14"></a>{else}&nbsp;{/if}</td>
                                </tr>
                              </table></td>
                            <td valign="top"><table summary='' cellpadding="0" cellspacing="0" width="400">
                                <tr>
                                  <td colspan="3"><img src="/img/product_detaile.jpg" width="400" alt="" height="20"></td>
                                </tr>
                        {section name=i loop=$prod_details}
                        <tr>
                                <td class="infa_4" align="left"><div class="faq"><b>{$prod_details[i].title}:</b></div></td>
                                <td width="1" bgcolor="#FFFFFF" height="21"></td>
                                <td class="infa_3" align="left">{if $prod_details[i].value_det != ''}<font class="faq">{$prod_details[i].value_det}</font>{/if}</td>
                        </tr>
                        <tr>
                                <td colspan="3" height="1" bgcolor="#FFFFFF"></td>
                        </tr>
                        {/section}
                              </table></td>
                          </tr>
                        </table>
                        <table summary='' cellpadding="1" cellspacing="0" width="610" align="center">
                          <tr>
                            <td bgcolor="#C7DAEB">
                                                                <table summary='' cellpadding="0" cellspacing="0" width="608" align="left">
                                <tr>
                                  <td bgcolor="#FFFFFF" class="infa" align="left"><div class="faq">{$itemdata.description|default:"&nbsp;"}</div></td>
                                </tr>
                              </table>
                                                         </td>
                          </tr>
                        </table>
                        <table summary='' cellpadding="0" cellspacing="0" width="610" align="center">
                          <tr>
                            <td width="400" height="20"></td>
                            <td width="210" height="20" bgcolor="#83C2F8" align="center"><a title='Total {$itemdata.title|lower} price' href="#">Total : ${$itemdata.our_price|default:"0"}</a></td>
                          </tr>
                        </table>
                        <table summary='' cellpadding="0" cellspacing="0" width="610" align="center">
                          <tr>
                            <td width="328" height="35" align="left"><a title='Buy {$itemdata.title|lower}' href="#" onclick="javascript: document.forms['detailsformname'].submit();"><img src="/img/add_to_shopping_cart.jpg" alt="" border="0"/></a><br/>
                              <a title='Back to catalog' href="{getsurl id=$itemdata.parent_id plugin='catalogpage' method='null' params='cid='}" ><img src="/img/back_to_the_catalog.jpg" width="209" height="34" border="0" alt=""/></a></td>
                          </tr>
                          <tr style="display:none;">
                                <td>
<div style="display:none;">
                <form name='detailsformname' action="{$mega_http_root}index.php" method='get'>
                <input type="hidden" name="event" value="add" />
                <input type="hidden" name="id" value="{$itemdata.catalog_id}">
                <input type="hidden" name="path" value="cart" />
                <input type="hidden" name="qty" value="1" />
                </form>
</div>                          
                                </td>

                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
            </table>

{*
                <table summary='' border="0" cellspacing="0" cellpadding="0" style="width:100%;">
                        <tr style="width:100%;">
                                <td>
                                        <table summary='' align="left" border="0">                                      
                                                <tr style="width:100%;">
                                                        <td width1="280px" valign="top" align="left">
                                                                <br />
                                                                <p style="padding: 0px 0px 0px 25px ; font-weight: bold; color: #1A6AB1">{$itemdata.title}</p>
                                                                <br />                                                                                                                  
                                                        </td>
                                                </tr>                   
                                                <tr valign="top" align="center">
                                                        <td>
                                                           <div id="img0" style="padding: 0px; margin: 0px;">
                                                                <table summary=''>
                                                                        <tr>
                                                                                <td align="left" style="padding: 0px 0px 0px 20px;" valign="top">
                                                                                        {if $itemdata.img_large != ''}
                                                                                                <img style="border: 1px solid #C6DAEB" src="{$mega_http_root}/inventory/{$itemdata.img_large}"  />
                                                                                        {else}
                                                                                                <img style="padding-bottom:3px; padding-top:10px; border: 0;" src="{$mega_http_root}img/no_image.png"/>
                                                                                        {/if}
                                                                                                <br />
                                                                                        {if $img_hires != ''}<center><a href="#" style="text-decoration: none" onclick="javascript:newwindow('{$mega_http_root}minipreview.php?url=/inventory/{$img_hires}', {$imgsizes[0]})"><p style="margin: 3px 0px 0px 0px; font-size: 10px">Zoom Image <img src="/img/lupa.png" style="margin: 0px 0px 0px 0px; vertical-align: middle;" border="0" /></p></a></center> {/if}
                                                                                        {if $qty > 0}
                                                                                        {/if}
                                                                                </td>
                                                                                <td valign="top">
                                                                                        <table summary='' style="" id="desc" bgcolor="#ffffff" width="220px">
                                                                                                <tr>
                                                                                                        <td colspan="2" style="background-color: #1A6AB1; text-align: center">
                                                                                                                <p style="color: #83C2F9; font-weight: bold">Product Details:</p>
                                                                                                        </td>
                                                                                                </tr>
                                                                                                {section name=i loop=$prod_details}
                                                                                                <tr>
                                                                                                        <td style="background-color: #DAEDFD">
                                                                                                                {$prod_details[i].title}:
                                                                                                        </td>
                                                                                                        <td style="background-color: #DAEDFD">
                                                                                                                {$prod_details[i].value_det}
                                                                                                        </td>
                                                                                                </tr>
                                                                                                {/section}
                                                                                        </table>
                                                                                </td>                                                   
                                                                        </tr>
                                                                </table>
                                                                </div>

                                                                   
                                                                <div id="img1" style="display: none;" style="padding: 0px; margin: 0px;">
                                                                <table summary=''>
                                                                        <tr>
                                                                                <td align="center" class="cont">
                                                                                        {if $pi.pi_view1_sm != ''}
                                                                                                <img src="{$mega_http_root}/inventory/{$pi.pi_view1_sm}" class="item_image" />
                                                                                        {else}
                                                                                                <img style="padding-bottom:3px; padding-top:10px; border: 0;" src="{$mega_http_root}img/no_image.png"/>
                                                                                        {/if}
                                                                                        <br />                                                                           
                                                                                        {if $pi.pi_view1_hi != ''}
                                                                                                <center><a href="#" style="text-decoration: none" onclick="javascript:newwindow('minipreview.php?url=/inventory/{$pi.pi_view1_hi}', {$imgsizes.1})"><p style="margin: 3px 0px 0px 0px; font-size: 10px">Zoom Image <img src="/img/lupa.png" style="margin: 0px 0px 0px 0px; vertical-align: middle;" border="0" /></p></a></center> 
                                                                                        {/if}
                                                                                        {if $qty > 0}
                                                                                                <a href="#" onclick="javascript: document.forms['detailsformname'].submit();"><span style="color:#FF0000">Buy it</span></a>
                                                                                        {/if}
                                                                                </td>
                                                                        </tr>
                                                                </table>
                                                                </div>
                                                         
                                                                <div id="img2" style="display: none;" style="padding: 0px; margin: 0px;">
                                                                <table summary=''>
                                                                        <tr>
                                                                                <td align="center" class="cont">
                                                                                        {if $pi.pi_view2_sm != ''}
                                                                                                <img src="{$mega_http_root}/inventory/{$pi.pi_view2_sm}" class="item_image" />
                                                                                        {else}
                                                                                                <img style="padding-bottom:3px; padding-top:10px; border: 0;" src="{$mega_http_root}img/no_image.png"/>
                                                                                        {/if}
                                                                                        <br />
                                                                                        {if $pi.pi_view2_hi != ''}
                                                                                                <center><a href="#" style="text-decoration: none" onclick="javascript:newwindow('minipreview.php?url=/inventory/{$pi.pi_view2_hi}', {$imgsizes[2]})"><p style="margin: 3px 0px 0px 0px; font-size: 10px">Zoom Image <img src="/img/lupa.png" style="margin: 0px 0px 0px 0px; vertical-align: middle;" border="0" /></p></a></center> 
                                                                                        {/if}
                                                                                        {if $qty > 0}
                                                                                                <a href="#" onclick="javascript: document.forms['detailsformname'].submit();"><span style="color:#FF0000">Buy it</span></a>
                                                                                        {/if}
                                                                                </td>
                                                                        </tr>
                                                                </table>
                                                                </div>                                          
                                                                                                
                                                                <div id="img3" style="display: none;" style="padding: 0px; margin: 0px;">
                                                                <table summary=''>
                                                                        <tr>
                                                                                <td align="center" class="cont">
                                                                                {if $pi.pi_view3_sm != ''}
                                                                                        <img src="{$mega_http_root}/inventory/{$pi.pi_view3_sm}" class="item_image" />
                                                                                {else}
                                                                                        <img style="padding-bottom:3px; padding-top:10px; border: 0;" src="{$mega_http_root}img/no_image.png"/>
                                                                                {/if}
                                                                                <br />
                                                                                {if $pi.pi_view3_hi != ''}
                                                                                        <center><a href="#" style="text-decoration: none" onclick="javascript:newwindow('minipreview.php?url=/inventory/{$pi.pi_view3_hi}', {$imgsizes[3]})"><p style="margin: 3px 0px 0px 0px; font-size: 10px">Zoom Image <img src="/img/lupa.png" style="margin: 0px 0px 0px 0px; vertical-align: middle;" border="0" /></p></a></center> 
                                                                                {/if}
                                                                                {if $qty > 0}
                                                                                        <a href="#" onclick="javascript: document.forms['detailsformname'].submit();"><span style="color:#FF0000">Buy it</span></a>
                                                                                {/if}
                                                                                </td>
                                                                        </tr>
                                                                </table>
                                                                </div>
                                                        </td>
                                                </tr>
                                                
                                                <tr align="center">
                                                        <td>
                                                                {if $pi.pi_view1_sm != ''}
                                                                        <input onClick="javascript: SetPayment(0);" type="button" style="width:50px;" value="Original" class="button" />
                                                                {/if}
                                                   </td>
                                                </tr>           
                                                <tr align="center">
                                                        <td>
                                                                {if $pi.pi_view1_sm != ''}
                                                                        <input onClick="javascript: SetPayment(1);" type="button" value="Image 1" style="width:50px;" class="button" />
                                                                {/if}
                                                                {if $pi.pi_view2_sm != ''}
                                                                        <input onClick="javascript: SetPayment(2);" type="button" value="Image 2" style="width:50px;" class="button" />
                                                                {/if}
                                                                {if $pi.pi_view3_sm != ''}
                                                                        <input onClick="javascript: SetPayment(3);" type="button" value="Image 3" style="width:50px;" class="button" />
                                                                {/if}                                           
                                                                <div width="200" style="padding:5">{$result_}</div> 
                                                        </td>
                                                </tr>
                                                {if !empty($itemdata.description)}
                                                <tr>
                                                        <td>
                                                                <table summary='' style="margin: 0px 0px 0px 20px;">
                                                                        <tr>
                                                                                <td style="border: 1px solid #C6DAEB; padding: 4px; text-align: justify"; width="700px">
                                                                                        <p>{$itemdata.description}</p>
                                                                                </td>
                                                                        </tr>
                                                                </table>
                                                        </td>
                                                </tr>                   
                                                {/if}
                                                <tr>
                                                        <td align="left">
                                                                <form name='detailsformname' action="{$mega_http_root}index.php" id='detailsform'  method='get'>
                                                                <input type="hidden" name="event" value="add" />
                                                                <input type="hidden" name="id" value="{$itemdata.catalog_id}">
                                                                <input type="hidden" name="path" value="cart">
                                                                <input type="hidden" name="qty" value="1">
                                                                </form>
                                        
                                                                <table summary='' style="margin: 0px; padding: 0px" border="0" width="100%">
                                                                        <tr>
                                                                                <td>
                                                                                        <table summary='' style="margin:10px 0px 0px 50px; width: 202px">
                                                                                                <tr>
                                                                                                        <td style="text-align: center; background-image:url('img/details_btn01.png'); width: 202px; height: 27px;">
                                                                                                                {if $qty > 0}
                                                                                                                        <a style="text-decoration: none;" title="Add to cart" href="#" onclick="document.forms['detailsformname'].submit();">
                                                                                                                                <p style="color: #B7DDFF; font-weight: bold;">ADD TO SHOPPING CART &gt;&gt;</p>
                                                                                                                        </a>
                                                                                                                {else}
                                                                                                                        <a style="text-decoration: none;" title="Add to cart" href="#" onclick="alert('Out of stock !');"><p style="color: #B7DDFF; font-weight: bold;">OUT OF STOCK</p></a>
                                                                                                                {/if}
                                                                                                        </td>
                                                                                                </tr>
                                                                                                <tr>
                                                                                                        <td style="height: 5px;"></td>
                                                                                                </tr>
                                                                                                <tr>
                                                                                                        <td style="background-image:url('img/details_btn01.png'); width: 202px; height: 27px;" align="center">
                                                                                                                <a style="text-decoration: none;" href="?path=catalogpage&cid={$smarty.get.cid}"><p style="color: #B7DDFF; font-weight: bold;">&lt;&lt; BACK TO THE CATALOG</p></a>
                                                                                                        </td>
                                                                                                </tr>
                                                                                        </table>        
                                                                                </td>
                                                        
                                                                                <td align="right" valign="top">
                                                                                        <table summary=''>
                                                                                                <tr>
                                                                                                        <td style="height: 1px;"></td>
                                                                                                </tr>
                                                                                                <tr>
                                                                                                        <td style="background-color: #83C2F9; padding: 4px 15px 4px 15px; margin: 4px 15px 4px 15px;" align="center">
                                                                                                                <p style="color: #ffffff;"><b>Total Price:</b> ${$itemdata.our_price}</p>
                                                                                                        </td>
                                                                                                </tr>
                                                                                        </table>        
                                                                                </td>                                                   
                                                                        </tr>
                                                                </table>
                                                        </td>
                                                </tr>
                                                {if !empty($question_result) and $question_result != '' }
                                                <tr>
                                                        <td>
                                                                {$question_result} 
                                                        </td>
                                                </tr>
                                                {/if}
                                        </table>
                                </td>
                        </tr>
                        
                        {if !empty($arr_items_group)} 
                        <tr align="center" style="width:100%;">
                                <td colspan="3">
                                        List of products associated with  <b>{$itemdata.title}</b> :
                                </td>
                        </tr>
                        <tr style="height: 1px;vertical-align:top;width: 100%;">
                                <td colspan="3" style="border: solid {if !empty($gp)} 1px {else} 0px {/if} #D6EFFF;">
                                        <table summary='' border="0" cellpadding="0" cellspacing="0" valign="top" style="vertical-align:top;width: 100%;border: solid {if !empty($list_catalog)}1px{else}0px{/if} #D6EFFF; background-color: #FFFFFF;">
                                                <tr>
                                                {foreach name="catalogs" from=$arr_items_group item=item}
                                                {if 0 == (($smarty.foreach.catalogs.iteration-1) % $pline_itms)}
                                                <tr>
                                                </tr>
                                                {/if}
                                                        <td class='cont' style="padding-left:10px;margin-top:0" >
                                                                <table summary='' border="0" cellpadding="0" cellspacing="0" valign="middle" align='center' id="content_text">
                                                                        <tr align='center'>
                                                                                <td>
                                                                                        <a href="{geturl plugin='catalogpage' method='null' params='page=view_details&pid='}{$item.catalog_id}">{$item.title}</a>
                                                                                </td>
                                                                        </tr>
                                                                        <tr align='center'>
                                                                                <td>
                                                                                        {if "" != $item.img_small}
                                                                                        <a href="{geturl plugin='catalogpage' method='null' params='page=view_details&pid='}{$item.catalog_id}"><img src="{$item.img_small}" border="0" /></a>
                                                                                        {/if}
                                                                                </td>
                                                                        </tr>
                                                                        <tr align='center' class="gray_text">
                                                                                <td>
                                                                                        ${$item.our_price|string_format:"%.2f"}
                                                                                </td>
                                                                        </tr>
                                                                </table>
                                                        </td>
                                                {/foreach}
                                                </tr>
                                        </table>
                                </td>
                        </tr>
                        {/if}
                </table>
*}